package com.hziee.mail.model;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "goods_introduce_img_directionary", schema = "mall", catalog = "")
public class GoodsIntroduceImgDirectionaryEntity {
    private int id;
    private String goodsId;
    private String goodsIntroduceImg;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "goods_id")
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    @Basic
    @Column(name = "goods_introduce_img")
    public String getGoodsIntroduceImg() {
        return goodsIntroduceImg;
    }

    public void setGoodsIntroduceImg(String goodsIntroduceImg) {
        this.goodsIntroduceImg = goodsIntroduceImg;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GoodsIntroduceImgDirectionaryEntity that = (GoodsIntroduceImgDirectionaryEntity) o;
        return id == that.id &&
                Objects.equals(goodsId, that.goodsId) &&
                Objects.equals(goodsIntroduceImg, that.goodsIntroduceImg);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, goodsId, goodsIntroduceImg);
    }
}
